package com.tiancheng.trade.settlement.service.settlement;

import com.tiancheng.trade.commom.core.data.Result;
import com.tiancheng.trade.settlement.bo.SettlementBillDataBO;
import com.tiancheng.trade.settlement.model.settlement.SettlementRule;

import java.text.ParseException;
import java.util.List;


public interface ISettlementBillDataService {


    /**
     * 保存账单数据
     *
     * @param orderBO
     * @return
     * @throws ParseException
     */
    public int saveBill(List<SettlementBillDataBO> orderBO) throws Exception;

    /**
     * 重新匹配规则，修改账单并对账
     *
     * @param subOrderIds
     * @param rule
     * @return
     */
    public Result matchingRule(List<String> subOrderIds, SettlementRule rule);

    /**
     * 待对账单批量与单条匹配清分规则
     *
     * @param subOrderIds
     * @param rule
     * @return
     */
    public Result waitBillMatchingRule(List<String> subOrderIds, SettlementRule rule);


}
